<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Carte mère: Référence du fichier src/generic.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<h1>Référence du fichier src/generic.h</h1>  </div>
</div>
<div class="contents">

<p><a href="generic_8h_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generic_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generic_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>&#160;&#160;&#160;0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generic_8h.html#aa6e19c4c858eed74b0d846af33b67a4d">byteSwap4</a> (void *dest, const void *source)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change l'endianness d'un mot de 4 octets.  <a href="#aa6e19c4c858eed74b0d846af33b67a4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generic_8h.html#a1deebfd54446b8c32946fba61f9c3c2f">byteSwap2</a> (void *dest, const void *source)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change l'endianness d'un mot de 2 octets.  <a href="#a1deebfd54446b8c32946fba61f9c3c2f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generic_8h.html#aa9b77e881b49601b5cf2d6ddd9c2abf7">saturation</a> (float variable, float borne)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Limite une variable entre deux bornes symétriques.  <a href="#aa9b77e881b49601b5cf2d6ddd9c2abf7"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des macros</h2>
<a class="anchor" id="aa93f0eb578d23995850d61f7d61c55c1"></a><!-- doxytag: member="generic.h::FALSE" ref="aa93f0eb578d23995850d61f7d61c55c1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FALSE&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa8cecfc5c5c054d2875c03e77b7be15d"></a><!-- doxytag: member="generic.h::TRUE" ref="aa8cecfc5c5c054d2875c03e77b7be15d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRUE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a1deebfd54446b8c32946fba61f9c3c2f"></a><!-- doxytag: member="generic.h::byteSwap2" ref="a1deebfd54446b8c32946fba61f9c3c2f" args="(void *dest, const void *source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void byteSwap2 </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"> <em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change l'endianness d'un mot de 2 octets. </p>
<p>Cette fonction copie un mot de 2 octets en inversant l'ordre des octets. Elle est notamment utilisée pour réaliser une conversion Big-Endian (IMU) vers Little-Endian (PIC). </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dest</td><td>adresse de destination </td></tr>
    <tr><td class="paramname">source</td><td>adresse du mot de 2 octets à copier </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>Voir également:</b></dt><dd><a class="el" href="generic_8h.html#aa6e19c4c858eed74b0d846af33b67a4d" title="Change l&#39;endianness d&#39;un mot de 4 octets.">byteSwap4</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa6e19c4c858eed74b0d846af33b67a4d"></a><!-- doxytag: member="generic.h::byteSwap4" ref="aa6e19c4c858eed74b0d846af33b67a4d" args="(void *dest, const void *source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void byteSwap4 </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"> <em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change l'endianness d'un mot de 4 octets. </p>
<p>Cette fonction copie un mot de 4 octets en inversant l'ordre des octets. Elle est notamment utilisée pour réaliser une conversion Big-Endian (IMU) vers Little-Endian (PIC). </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dest</td><td>adresse de destination </td></tr>
    <tr><td class="paramname">source</td><td>adresse du mot de 4 octets à copier </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>Voir également:</b></dt><dd><a class="el" href="generic_8h.html#a1deebfd54446b8c32946fba61f9c3c2f" title="Change l&#39;endianness d&#39;un mot de 2 octets.">byteSwap2</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa9b77e881b49601b5cf2d6ddd9c2abf7"></a><!-- doxytag: member="generic.h::saturation" ref="aa9b77e881b49601b5cf2d6ddd9c2abf7" args="(float variable, float borne)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float saturation </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"> <em>variable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"> <em>borne</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Limite une variable entre deux bornes symétriques. </p>
<p>Cette fonction permet de limiter une variable entre deux bornes, symétriquement par rapport à 0. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">variable</td><td>la variable à borner </td></tr>
    <tr><td class="paramname">borne</td><td>la valeur de saturation positive et négative </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>variable bornée entre -borne et +borne </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Wed Jan 5 2011 17:04:29 pour Carte mère par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
